﻿using GISforTT_API;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using ESRI.ArcGIS.Client.Geometry;
using System.Windows.Media;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using ESRI.ArcGIS.Client;
using System.Windows.Markup;

namespace GISforTT_Test
{
    
    
    /// <summary>
    ///This is a test class for MapFrameTest and is intended
    ///to contain all MapFrameTest Unit Tests
    ///</summary>
    [TestClass()]
    public class MapFrameTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for MapFrame Constructor
        ///</summary>
        [TestMethod()]
        public void MapFrameConstructorTest()
        {
            GhostFrame relatedGhostFrame = null; // TODO: Initialize to an appropriate value
            MapPoint p1 = null; // TODO: Initialize to an appropriate value
            MapPoint p2 = null; // TODO: Initialize to an appropriate value
            SolidColorBrush color = null; // TODO: Initialize to an appropriate value
            MapFrame target = new MapFrame(relatedGhostFrame, p1, p2, color);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for MapFrame Constructor
        ///</summary>
        [TestMethod()]
        public void MapFrameConstructorTest1()
        {
            GhostFrame relatedGhostFrame = null; // TODO: Initialize to an appropriate value
            Envelope env = null; // TODO: Initialize to an appropriate value
            SolidColorBrush color = null; // TODO: Initialize to an appropriate value
            MapFrame target = new MapFrame(relatedGhostFrame, env, color);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for MapFrame Constructor
        ///</summary>
        [TestMethod()]
        public void MapFrameConstructorTest2()
        {
            GhostFrame relatedGhostFrame = null; // TODO: Initialize to an appropriate value
            MapPoint p1 = null; // TODO: Initialize to an appropriate value
            MapPoint p2 = null; // TODO: Initialize to an appropriate value
            MapFrame target = new MapFrame(relatedGhostFrame, p1, p2);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for GetGhostFrame
        ///</summary>
        [TestMethod()]
        public void GetGhostFrameTest()
        {
            GhostFrame relatedGhostFrame = null; // TODO: Initialize to an appropriate value
            MapPoint p1 = null; // TODO: Initialize to an appropriate value
            MapPoint p2 = null; // TODO: Initialize to an appropriate value
            MapFrame target = new MapFrame(relatedGhostFrame, p1, p2); // TODO: Initialize to an appropriate value
            GhostFrame expected = null; // TODO: Initialize to an appropriate value
            GhostFrame actual;
            actual = target.GetGhostFrame();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for InitializeMap
        ///</summary>
        [TestMethod()]
        [DeploymentItem("GISforTT_API.dll")]
        public void InitializeMapTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            MapFrame_Accessor target = new MapFrame_Accessor(param0); // TODO: Initialize to an appropriate value
            target.InitializeMap();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for LoadImageFromPath
        ///</summary>
        [TestMethod()]
        [DeploymentItem("GISforTT_API.dll")]
        public void LoadImageFromPathTest()
        {
            string path = string.Empty; // TODO: Initialize to an appropriate value
            Image expected = null; // TODO: Initialize to an appropriate value
            Image actual;
            actual = MapFrame_Accessor.LoadImageFromPath(path);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LoadMap
        ///</summary>
        [TestMethod()]
        [DeploymentItem("GISforTT_API.dll")]
        public void LoadMapTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            MapFrame_Accessor target = new MapFrame_Accessor(param0); // TODO: Initialize to an appropriate value
            Envelope env = null; // TODO: Initialize to an appropriate value
            target.LoadMap(env);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for LoadMap
        ///</summary>
        [TestMethod()]
        [DeploymentItem("GISforTT_API.dll")]
        public void LoadMapTest1()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            MapFrame_Accessor target = new MapFrame_Accessor(param0); // TODO: Initialize to an appropriate value
            MapPoint p1 = null; // TODO: Initialize to an appropriate value
            MapPoint p2 = null; // TODO: Initialize to an appropriate value
            target.LoadMap(p1, p2);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

                
        /// <summary>
        ///A test for SetMapFrameName
        ///</summary>
        [TestMethod()]
        public void SetMapFrameNameTest()
        {
            GhostFrame relatedGhostFrame = null; // TODO: Initialize to an appropriate value
            MapPoint p1 = null; // TODO: Initialize to an appropriate value
            MapPoint p2 = null; // TODO: Initialize to an appropriate value
            MapFrame target = new MapFrame(relatedGhostFrame, p1, p2); // TODO: Initialize to an appropriate value
            string name = string.Empty; // TODO: Initialize to an appropriate value
            target.SetMapFrameName(name);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

    }
}
